Retrieve a paginated list of tasks with optional filtering capabilities. Useful for monitoring task execution across your organization or for specific agents and users.
Query Parameters
Page number (starting from 1)
Items per page (maximum 50)
Filter by task status: queued, running, completed, failed, cancelled
Filter by specific agent ID
Filter by user ID who created the task
Response
Array of task objects Unique identifier for the task (UUID format)
ID of the agent that executed this task
ID of the user who created the task (nullable)
ID of parent task if this is a subtask (nullable)
ID of agent that triggered this task (nullable)
Organization UUID this task belongs to
Current task status: pending, completed, error
ISO timestamp of task creation
ISO timestamp of last update
Source that created the task (e.g., sdk)
Task execution result (nullable, present when completed)
Task title or description (nullable)
Total number of tasks across all pages
Total number of pages available
Example Request
# List all tasks
curl -X GET -H "x-api-key: YOUR_API_KEY" \
"https://api.xpander.ai/v1/tasks?page=1&per_page=3"
# Filter by status
curl -X GET -H "x-api-key: YOUR_API_KEY" \
"https://api.xpander.ai/v1/tasks?status=completed&page=1&per_page=10"
# Filter by agent
curl -X GET -H "x-api-key: YOUR_API_KEY" \
"https://api.xpander.ai/v1/tasks?agent_id=38551c1d-a16b-454f-84d4-68f431ba608b&page=1"
Example Response
{
"items" : [
{
"id" : "3287cd69-51eb-4ffd-af24-9a2c7e63f2c7" ,
"agent_id" : "47c3b020-9a6b-4699-8d94-d92d71929b53" ,
"user_id" : "c9b4465d-0795-4493-9a23-8fc7cf6d3283" ,
"parent_task_id" : null ,
"triggering_agent_id" : null ,
"organization_id" : "91fbe9bc-35b3-41e8-b59d-922fb5a0f031" ,
"status" : "completed" ,
"created_at" : "2025-11-06T06:46:02.104705Z" ,
"updated_at" : "2025-11-06T06:46:58.136813Z" ,
"source_node_type" : "sdk" ,
"result" : "The content has been saved as a new Notion page..." ,
"title" : "Git Diff"
},
{
"id" : "333897e5-1c35-4598-a6ad-af5e0c101c84" ,
"agent_id" : "38551c1d-a16b-454f-84d4-68f431ba608b" ,
"user_id" : null ,
"parent_task_id" : null ,
"triggering_agent_id" : null ,
"organization_id" : "91fbe9bc-35b3-41e8-b59d-922fb5a0f031" ,
"status" : "completed" ,
"created_at" : "2025-11-06T06:41:54.891936Z" ,
"updated_at" : "2025-11-06T06:41:58.172060Z" ,
"source_node_type" : "sdk" ,
"result" : "4" ,
"title" : "API Test - Simple Math"
}
],
"total" : 1000 ,
"page" : 1 ,
"per_page" : 3 ,
"total_pages" : 334
}
API Key for authentication
Page number (starting from 1)
Required range: x >= 1
Required range: 1 <= x <= 50
filter by user id (optional)
filter by parent task id (optional)
filter by triggering agent id (parent calling agent) (optional)
filter by task status (optional)
Available options:
pending,
executing,
paused,
error,
failed,
completed,
stopped
filter by internal status (optional)
items
TasksListItem · object[]
required